package com.hotel.homehotel.before.entiy;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel
public class Reply {
    @ApiModelProperty(value = "回复id")
    @TableId(value = "reply_id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "回复内容")
    @TableField("reply_content")
    private String content;

    @ApiModelProperty(value = "回复类型")
    @TableField("reply_type")
    private String type;


    @ApiModelProperty(value = "该条回复来自哪个用户")
    @TableField("from_uid")
    private String from_uid;

    @ApiModelProperty(value = "该条回复要回复哪个用户")
    @TableField("to_uid")
    private String to_uid;
    @ApiModelProperty(value = "一级评论id")
    @TableField("comment_id")
    private String cid;



    @ApiModelProperty(value = "创建时间",example = "2019-01-01 8:00:00")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    @JsonIgnore
    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "创建者")
    private String createdBy;

}
